﻿namespace Runtime.Common.Interface
{
    /// <summary>
    /// 责任链
    /// </summary>
    public interface IChainofResponsibility
    {
        /// <summary>
        /// 下一个责任
        /// </summary>
        IChainofResponsibility NextChainof { get; set; }

        /// <summary>
        ///责任链事件
        ///传递到下一个责任
        /// </summary>
        void Transmit();

        /// <summary>
        /// 启用下一个责任链
        /// </summary>
        void OnResponsibility();
    }
}